<template>
  <file-upload :callback="setImageUrl" :attr-url="dataForm[attrName]" :image-type="imageType"></file-upload>
</template>

<script>
import FileUpload from '@/components/fileUpload'
import basicMixins from './basicMixins'

export default {
  name: 'uploadImage',
  components: {FileUpload},
  mixins: [basicMixins],
  props: ['imageType'],
  methods: {
    setImageUrl(url) {
      this.dataForm[this.attrName] = url
    }
  }
}
</script>

<style scoped>

</style>
